package iluminados.cine.pe.model;

import java.io.Serializable;
import java.sql.Time;
import java.util.*;
public class Pelicula implements Serializable {
	private int idPelicula;
	private String censura;
	private String comntResumen;
	private String descriptor;
	private String director;
	private Time duracionMin;
	private String urlweb;
	private String pais;
	private String titulo;
	private String urlTrailer;

	//bi-directional many-to-many association to Cliente
    /**@ManyToMany
	@JoinTable(
		name="cliente_has_pelicula"
		, joinColumns={
			@JoinColumn(name="Pelicula_idPelicula")
			}
		, inverseJoinColumns={
			@JoinColumn(name="Cliente_idCliente")
			}
		)*/
	private Set<Cliente> objClientes;

	private Cartelera objCartelera;

	//bi-directional many-to-many association to Genero
    /**@ManyToMany
	@JoinTable(
		name="pelicula_has_genero"
		, joinColumns={
			@JoinColumn(name="Pelicula_idPelicula")
			}
		, inverseJoinColumns={
			@JoinColumn(name="Genero_idGenero")
			}
		)**/
	private Set<Genero> generos;

	//bi-directional many-to-many association to Local
  /**  @ManyToMany
	@JoinTable(
		name="pelicula_has_local"
		, joinColumns={
			@JoinColumn(name="Pelicula_idPelicula")
			}
		, inverseJoinColumns={
			@JoinColumn(name="Local_idLocal")
			}
		)*/
	private Set<LocalMaster> objLocals;

    public Pelicula() {
    }

	public Pelicula(int idPelicula, String censura, String comentario,
			String descripcion, String director, Time duracion, String urlweb,
			String pais, String titulo, String urlTrailer,
			Set<Cliente> objClientes, Cartelera objCartelera,
			Set<Genero> generos, Set<LocalMaster> objLocals) {
		super();
		this.idPelicula = idPelicula;
		this.censura = censura;
		this.comntResumen = comentario;
		this.descriptor = descripcion;
		this.director = director;
		this.duracionMin = duracion;
		this.urlweb = urlweb;
		this.pais = pais;
		this.titulo = titulo;
		this.urlTrailer = urlTrailer;
		this.objClientes = objClientes;
		this.objCartelera = objCartelera;
		this.generos = generos;
		this.objLocals = objLocals;
	}

	public int getIdPelicula() {
		return idPelicula;
	}

	public void setIdPelicula(int idPelicula) {
		this.idPelicula = idPelicula;
	}

	public String getCensura() {
		return censura;
	}

	public void setCensura(String censura) {
		this.censura = censura;
	}

	public String getComntResumen() {
		return comntResumen;
	}

	public void setComntResumen(String comntResumen) {
		this.comntResumen = comntResumen;
	}

	public String getDescriptor() {
		return descriptor;
	}

	public void setDescriptor(String descriptor) {
		this.descriptor = descriptor;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public Time getDuracionMin() {
		return duracionMin;
	}

	public void setDuracionMin(Time duracionMin) {
		this.duracionMin = duracionMin;
	}

	public String getUrlweb() {
		return urlweb;
	}

	public void setUrlweb(String urlweb) {
		this.urlweb = urlweb;
	}

	public String getPais() {
		return pais;
	}

	public void setPais(String pais) {
		this.pais = pais;
	}

	public String getTitulo() {
		return titulo;
	}

	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}

	public String getUrlTrailer() {
		return urlTrailer;
	}

	public void setUrlTrailer(String urlTrailer) {
		this.urlTrailer = urlTrailer;
	}

	public Set<Cliente> getObjClientes() {
		return objClientes;
	}

	public void setObjClientes(Set<Cliente> objClientes) {
		this.objClientes = objClientes;
	}

	public Cartelera getObjCartelera() {
		return objCartelera;
	}

	public void setObjCartelera(Cartelera objCartelera) {
		this.objCartelera = objCartelera;
	}

	public Set<Genero> getGeneros() {
		return generos;
	}

	public void setGeneros(Set<Genero> generos) {
		this.generos = generos;
	}

	public Set<LocalMaster> getObjLocals() {
		return objLocals;
	}

	public void setObjLocals(Set<LocalMaster> objLocals) {
		this.objLocals = objLocals;
	}

	
}